package com.ruoyi.recycle.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 积分规则设置对象 integral_config
 * 
 * @author Wubk
 * @date 2022-05-22
 */
@ApiModel("积分规则设置")
@Data
@Accessors(chain = true)
public class IntegralConfig implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @ApiModelProperty(name = "id",value = "积分规则id",dataType = "Long")
    private Long id;

    /** 积分配置名称 */
    @Excel(name = "积分配置名称")
    @ApiModelProperty(name = "name",value = "积分配置名称",dataType = "String")
    private String name;

    /** 积分类型 */
    @Excel(name = "积分类型")
    @ApiModelProperty(name = "type",value = "积分类型",dataType = "String")
    private String type;

    /** 积分数量 */
    @Excel(name = "积分数量")
    @ApiModelProperty(name = "integral",value = "积分数量",dataType = "Long")
    private Long integral;

    /** 创建人 */
    @Excel(name = "创建人")
    @ApiModelProperty(name = "createdBy",value = "创建人",dataType = "String")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "createdTime", value = "创建时间", dataType = "Date", notes = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    @ApiModelProperty(name = "updatedBy",value = "更新人",dataType = "String")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "updatedTime",value = "更新时间",dataType = "Date",notes = "yyyy-MM-dd")
    private Date updatedTime;


}
